package demo1;

public class Bird extends Animal implements IRunning,IFlying{
    public Bird(String name,int age) {
        super(name,age);
    }
    @Override
    public void fly() {
        System.out.println(name+"自由的飞翔");
    }

    @Override
    public void running() {
        System.out.println(name+"飞快的跑");
    }
}
